SOURCES=main.o gui.o core.o

BIN=Test
CC=gcc
CPP=g++
CFLAGS=`pkg-config --cflags gtk+-2.0` 
LIBS=`pkg-config --libs gtk+-2.0 ` 

all: $(SOURCES) link

.c.o:
	$(CC) -c $< -o $@ $(CFLAGS)
.cpp.o:
	$(CPP) -c $< -o $@ $(CFLAGS)
link:
	$(CPP) $(SOURCES) -o $(BIN) $(LIBS)
clean:
	rm $(SOURCES) $(BIN)

